Tables [dbo].[LicenseOrganization]
Properties
PropertyValue
Created10:31:26 AM Tuesday, March 02, 2010
Last Modified1:20:15 PM Thursday, February 23, 2012
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_LicenseOrganization: LicenseOrganizationKeyLicenseOrganizationKeyuniqueidentifier16
No
Namenvarchar(50)100
No
Foreign Keys FK_LicenseOrganization_ContactMain: [dbo].[ContactMain].ContactKeyIndexes IX_LicenseOrganization_ContactKey: ContactKeyContactKeyuniqueidentifier16
Yes
Descriptionnvarchar(250)500
No
('')
Foreign Keys FK_LicenseOrganization_UserMain_CreatedBy: [dbo].[UserMain].CreatedByUserKeyIndexes IX_LicenseOrganization_CreatedByUserKey: CreatedByUserKeyCreatedByUserKeyuniqueidentifier16
No
CreatedOndatetime8
No
Foreign Keys FK_LicenseOrganization_UserMain_UpdatedBy: [dbo].[UserMain].UpdatedByUserKeyIndexes IX_LicenseOrganization_UpdatedByUserKey: UpdatedByUserKeyUpdatedByUserKeyuniqueidentifier16
No
UpdatedOndatetime8
No
MarkedForDeleteOndatetime8
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_LicenseOrganization: LicenseOrganizationKeyPK_LicenseOrganizationLicenseOrganizationKey
Yes
IX_LicenseOrganization_ContactKeyContactKey
IX_LicenseOrganization_CreatedByUserKeyCreatedByUserKey
IX_LicenseOrganization_UpdatedByUserKeyUpdatedByUserKey
Foreign Keys Foreign Keys
NameColumns
FK_LicenseOrganization_ContactMainContactKey->[dbo].[ContactMain].[ContactKey]
FK_LicenseOrganization_UserMain_CreatedByCreatedByUserKey->[dbo].[UserMain].[UserKey]
FK_LicenseOrganization_UserMain_UpdatedByUpdatedByUserKey->[dbo].[UserMain].[UserKey]
SQL Script
CREATE TABLE [dbo].[LicenseOrganization]
(
[LicenseOrganizationKey] [uniqueidentifier] NOT NULL,
[Name] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ContactKey] [uniqueidentifier] NULL,
[Description] [nvarchar] (250) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL CONSTRAINT [DF_LicenseOrganization_Description] DEFAULT (''),
[CreatedByUserKey] [uniqueidentifier] NOT NULL,
[CreatedOn] [datetime] NOT NULL,
[UpdatedByUserKey] [uniqueidentifier] NOT NULL,
[UpdatedOn] [datetime] NOT NULL,
[MarkedForDeleteOn] [datetime] NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[LicenseOrganization] ADD CONSTRAINT [PK_LicenseOrganization] PRIMARY KEY CLUSTERED ([LicenseOrganizationKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_LicenseOrganization_ContactKey] ON [dbo].[LicenseOrganization] ([ContactKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_LicenseOrganization_CreatedByUserKey] ON [dbo].[LicenseOrganization] ([CreatedByUserKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_LicenseOrganization_UpdatedByUserKey] ON [dbo].[LicenseOrganization] ([UpdatedByUserKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LicenseOrganization] ADD CONSTRAINT [FK_LicenseOrganization_ContactMain] FOREIGN KEY ([ContactKey]) REFERENCES [dbo].[ContactMain] ([ContactKey])
GO
ALTER TABLE [dbo].[LicenseOrganization] ADD CONSTRAINT [FK_LicenseOrganization_UserMain_CreatedBy] FOREIGN KEY ([CreatedByUserKey]) REFERENCES [dbo].[UserMain] ([UserKey])
GO
ALTER TABLE [dbo].[LicenseOrganization] ADD CONSTRAINT [FK_LicenseOrganization_UserMain_UpdatedBy] FOREIGN KEY ([UpdatedByUserKey]) REFERENCES [dbo].[UserMain] ([UserKey])
GO
Uses
Used By